<!DOCTYPE html>
<html lang='en'>
<head>
	<meta charset='utf-8' />
	<title>smeoa</title>
	<meta content='' name='description' />
	<meta content='' name='author' />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Bootstrap -->
	<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<link href="__PUBLIC__/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="__PUBLIC__/css/test.css" rel="stylesheet">
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="assets/js/html5shiv.js"></script>
	<![endif]-->
</head>
<body class="login">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12 margin-top hidden-phone"></div>
		</div>
		<div class="row-fluid">
			<div class="span1"></div>
			<div class="span7 hidden-phone">
				<div class="img"></div>
			</div>
			<div class="span3">
				<div style="margin-bottom:44px">
					<h1>摄像头管理系统</h1>
				</div>
				<form method="post" id="form_login">
					<label for="name">帐号:</label>
					<input type="text" id="name" name="name"  check="require" msg="请输入帐号:">
					<label for="password">密码:</label>
					<input type="password" id="password" name="password" check="require" msg="请输入密码" onkeydown="key_login()">
					<br>
                                        <input type="button" value="登录" onclick="login();" class="btn"> <a href="{:U('clogin/register')}" ><input type="button" value="注册"  class="btn"></a></form>
				<span>用户名：test 密码：test</span>
			</div>
			<div class="span1"></div>
		</div>
		<div class="row-fluid">
			<div class="span1"></div>
			<div class="span3">
				<span>
					<a href="">帮助中心</a>
				</span>
				<span>
					<a href="">反馈</a>
				</span>
			</div>
		</div>
	</div>
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
			function login() {
				if (check_form("form_login")) {
					$("#form_login").attr("action", "{:U('clogin/check_login')}");
					$("#form_login").submit();
				}
			}
                        

			function key_login() {
				if (event.keyCode == 13){
					if (check_form("form_login")) {
						sendForm("form_login", "{:U('clogin/check_login')}");
						return false;
					}
				}
			}
		</script>
</body>
</html>